/*此文件用于对el-ui样式覆盖*/
/*覆盖非必要情况不要使用 ！important */
/*定义一个类名 参考u-需覆盖的UI样式类名，并注明注释 */
/* [v-cloak]{
    display: none !important;
} */

.date-picker .el-date-editor .el-input__inner,
.date-picker .el-select .el-input__inner {
    border: none !important;
}

/*title-input-group 组件内部*/
.u-title-input-group .el-select .el-input__inner {
    border-radius: 0;
}

.u-title-input-group.gray .el-input__inner {
    background: white;
}

.el-loading-mask.is-fullscreen {
    z-index: 9999 !important;
}

.el-form-item__label {
    padding: 0;
}

/*title-input-group 组件内覆盖 radio样式*/
.title-input-group .el-radio+.el-radio {
    margin-left: 22px
}

.el-range-editor--mini.el-input__inner {
    height: 25px;
}

.el-date-editor--daterange.el-input__inner {
    width: 220px;
}

.el-date-editor .el-input__inner,
.el-select .el-input__inner {
    // border-radius: 14px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    box-sizing: border-box;
}

.el-date-editor .el-input__icon,
.el-select .el-input__icon {
    line-height: 30px;
}

.el-input--prefix .el-input__inner {
    padding-right: 0;
    padding-left: 20px;
}

.el-date-editor .el-range-separator {
    line-height: 30px;
}

.el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content {
    background: none;
}

.el-tree--highlight-current .el-tree-node.is-current[tabindex^='-']>.el-tree-node__content>.el-tree-node__label {
    background: #3E73A0;
    color: #ffffff;
    padding: 0 4px;
}

.el-input__inner {
    border-radius: 4px;
    background: white;
    border-color: #BFCBD9;
}

.el-form-item--small {
    min-height: 40px;
    line-height: 40px;
}

.el-form-item__label {
    position: relative;
    min-height: 40px;
    line-height: 40px;
    text-align: left;
}

.el-form-item__label:before {
    position: absolute;
    top: 0;
    left: -9px;
}

// 此处调整margin-bottom
.el-form-item--mini.el-form-item,
.el-form-item--small.el-form-item {
    margin-bottom: 12px;

    .el-form-item__error {
        top: unset;
    }
}

/*-----------el-message-box组件----------------*/
.el-message-box {
    border: none;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
}

.el-message-box__header {
    background: #1881BF;
}

.el-message-box__title {
    color: #ffffff;
    font-size: 16px;
}

.el-message-box__header {
    padding: 9px;
}

.el-message-box__headerbtn {
    top: 10px;

    &:hover {
        .el-message-box__close {
            color: $hoverColor;
            border-color: $hoverColor;
        }
    }
}

.el-message-box__headerbtn .el-message-box__close {
    color: #ffffff;
}

.el-message-box__btns {
    text-align: center;
    padding: 5px 15px;
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
}

.el-message-box__content {
    padding: 30px 15px;
}

.el-message-box__btns>button {
    padding: 7px 24px !important;
    // border-radius: 15px;
    margin: 0px 10px;
}

.el-message-box__btns .el-button--primary {
    // border-color: #1881BF;
    // background: #1881BF;

    &:hover {
        background: #409eff;
        border-color: $hoverColor;
    }
}

/*弹出框组件 el-dialog*/
.el-dialog {
    border-radius: 3px;
    overflow: hidden;

    .el-loading-mask {
        left: -20px;
    }

    .el-dialog__header {
        background: #ffffff;
        height: 40px;
        line-height: 40px;
        border-bottom: 1px solid #E4E4E4;
        padding: 0 0 0 30px;
        color: #333333;

        .el-dialog__title {
            font-size: 16px;
            color: #333333;
        }

        .el-dialog__headerbtn {
            top: 14px;

            .el-dialog__close {
                color: #333333;
            }
        }

        .el-dialog__headerbtn i {
            color: #333333;

            &:hover {
                color: $hoverColor;
                border-color: $hoverColor;
            }
        }
    }

    .el-dialog__body {
        padding: 20px 30px 20px 30px;
    }

    .dialog-footer {
        margin-top: 30px;
        text-align: center;
        line-height: normal;

        button {
            display: inline-block;
            border-radius: 2px;
            font-size: 14px;
            padding: 9px 20px;
        }

        button.el-button--primary {
            &:hover {
                background: $oneLevelBtnHoverColor;
            }
        }

        button.el-button--default {
            &:hover {
                background: (24, 129, 191, 0.2);
                border-color: #a0cfff;
            }
        }

        .el-button+.el-button {
            margin-left: 40px;
        }

        .el-button--primary {
            background: $oneLevelBtnColor;
            border: none;
        }

        button.el-button--default {
            padding: 8px 20px;
        }
    }
}

/**/
/**子导航 tabs
*/
.sub-nav {
    height: 100%;
    line-height: 40px;
    border-radius: 5px;
    display: block;
    // padding-right: 20px;

    .el-tabs__nav-scroll {
        padding: 0px 20px;
    }

    background-color: white;
}

.el-tabs.el-tabs--top {
    background-color: #F1F6FB;
}

.el-tabs__header {
    height: 50px;
    line-height: 50px;
    margin: 0px;
    background: white;
}

.el-tabs__item,
.el-tabs__nav-wrap,
.el-tabs__nav.is-top {
    height: 50px;
    line-height: 50px;
}

.el-tabs__nav-wrap {
    background-color: white;
    margin-left: 20px;
    // border-radius: 5px;
}

.el-tabs__content {
    padding: 0px;
    padding: 0px 15px;
    // margin-top: 20px;
    // border-radius: 5px;
    background-color: white;
    height: calc(100% - 50px);
}

.el-tabs__nav-wrap::after {
    height: 1px;
}

.single {
    .el-tabs__active-bar {
        height: 0;
    }

    .el-tabs__nav,
    .el-tabs__item:hover {
        cursor: default;
    }
}

// -----------------------表格-------------------
.datatable-box {
    padding: 0px 5px;

    .el-table thead {
        color: #909399;
        font-weight: 500;
    }

    .el-table td,
    .el-table th.is-leaf {
        border-bottom: 1px solid #ebeef5;
    }

    .el-table__body-wrapper {
        overflow-y: auto !important;
    }

    .rowstylebg {
        background: rgba(247, 251, 252, 1) !important;
    }

    .fontRed {
        color: #ff4848;
    }

    .fontGreen {
        color: #36b888;
    }

    .fontGray {
        color: #a4a4a4;
    }

    .fontBlack {
        color: #353535;
        font-weight: bold;
    }

    .el-checkbox__inner {
        width: 15px;
        height: 15px;
        border-color: #a5b3bc;
        border-radius: 0;
    }

    // .el-table::before {
    //     background: #ccc;
    // }

    .operationTit div {
        padding-left: 27%;
    }

    .operationbts div button {
        font-size: 14px;
        font-weight: bold;
    }
}

.el-table__header tr,
.el-table__header th {
    padding: 0;
    height: 40px;
}

.el-table__body tr,
.el-table__body td {
    padding: 0;
    height: 40px;
}

//--------------------------文本框-------------------------
// .el-date-editor .el-input__inner,
// .el-select .el-input__inner {
//     border-radius: 14px;
// }
.el-date-editor .el-input__inner,
.el-select .el-input__inner {
    text-align: left;
}

.el-input--prefix .el-input__inner {
    padding-left: 25px;
    text-align: left;
}

//---------------------------*菜单组件*--------------------------/
.sidebar-el-menu {
    @mixin menu_icon {
        display: inline-block;
        width: 1.25em;
        position: relative;
        font-size: 24px;
        text-shadow: none;
        font-weight: 300;
        text-align: center;
        top: 2px;
        margin-left: 1px;
        margin-right: 4px;
        line-height: 14px;
        -webkit-font-smoothing: antialiased;
    }

    .el-menu-item {
        display: block;
        margin: 0;
        padding: 0;
        border: 0;
        height: auto;
        line-height: 1em;
    }

    .el-menu-item {
        min-height: 100px;
        display: block;
        position: relative;
        margin: 0;
        border: 0;
        padding: 25px 15px;
        text-decoration: none;
        font-size: 13px;
        font-weight: 300;
        text-align: center;
        color: #c3cee0;
        text-shadow: none;

        i {
            @include menu_icon;
        }

        .title {
            display: block;
            text-align: center;
            margin-top: 15px;
        }
    }

    .el-submenu__title * {
        display: block;
        text-align: center;
        margin-top: 15px;
        line-height: normal;
    }

    /*子菜单*/
    .el-submenu__title {
        height: 78px;
        line-height: 78px;
        padding: 1px 15px 21px 15px;
        box-sizing: content-box;

        i {
            @include menu_icon;
            width: 100%;
            display: block;
        }

        i.el-icon-arrow-down,
        .el-submenu__icon-arrow {
            display: none;
        }

        // border-bottom: 1px #3678ba solid;
    }

    .el-menu-item.leaf {
        min-height: 30px;
    }

    .el-menu-item .menu-title {
        margin-left: -15px;
    }

    .el-submenu {
        .el-menu {
            position: fixed;
            left: 200px;
            margin-top: -78px;
            z-index: 99;
            border: 1px #1881bf solid;
        }

        .el-menu-item {
            min-width: 160px;
        }

        &:hover {
            background-color: rgb(204, 204, 204);
        }
    }
}

/*----------------------loading-------------------------*/
.el-loading-spinner {
    .el-icon-loading {
        font-size: 50px;
    }

    .el-icon-loading,
    .el-loading-text {
        color: dodgerblue;
    }
}

/*----------------------el-steps-------------------------*/
$processColor:#48AB45;

.el-step__head.is-process {
    color: $processColor;
    border-color: $processColor;

    .el-step__icon.is-text {
        background-color: $processColor;
        color: white;
    }
}

.el-step__head.is-success {
    .el-step__line {
        background-color: #67c23a;
    }
}

/*-------------------------el-tab----------------------*/
.el-tab-pane {
    height: 100%;
    padding-right: 5px;
}

/*--------------------------时间轴----------------------*/
.el-timeline-item__node,
.el-timeline-item__tail {
    margin-top: 12px;
}

.el-button.is-round,
.el-button--small.is-round {
    border-radius: 2px;
    padding: 10px 15px 8px 15px;
}

/*--------------------------按钮----------------------*/
.el-button--primary {
    background-color: $oneLevelBtnColor;

    &:hover {
        background-color: $oneLevelBtnHoverColor;
    }
}

.el-form-item--small .el-form-item__content {
    margin-right: 10px;
}